import request from '@/utils/request'

// 查询基础资料列表
export function listVillage(query) {
  return request({
    url: '/basicdata/village/list',
    method: 'get',
    params: query
  })
}

// 查询基础资料详细
export function getVillage(id) {
  return request({
    url: '/basicdata/village/' + id,
    method: 'get'
  })
}

// 新增基础资料
export function addVillage(data) {
  return request({
    url: '/basicdata/village',
    method: 'post',
    data: data
  })
}

// 修改基础资料
export function updateVillage(data) {
  return request({
    url: '/basicdata/village',
    method: 'put',
    data: data
  })
}

// 删除基础资料
export function delVillage(id) {
  return request({
    url: '/basicdata/village/' + id,
    method: 'delete'
  })
}
